Skip to content

Replace stacked globes with optimized merged vector overlays - #2

Open
aakside wants to merge 1 commit into
mainfrom
feat/merged-vector-tiles
Open

aakside wants to merge 1 commit into
mainfrom
feat/merged-vector-tiles

Conversation

@aakside

@aakside aakside commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Replace stacked globe instances with a single MapLibre globe and worker-generated merged vector tiles. Overlay geometry and styles are clipped, transformed, and namespaced while preserving the existing MapState/MapLayer configuration API.

Overlay dragging previously cleared tile contents and triggered expensive regeneration. This change caches decoded and clipped geometry, fetches tile contributions concurrently, reduces worker message payloads, and moves an intact bitmap preview during dragging. Replacement styles are staged so existing tiles remain visible until the next generation is ready; paint-only updates reuse vector sources.

Includes gesture cancellation, runtime image forwarding, surfaced map errors, an updated demo, architecture documentation, and CI checks. Offscreen content becomes visible after replacement tiles load; raster overlay sources are explicitly unsupported.

Validation:

  • 28 tests pass, covering geometry, style composition, caching, concurrency, transitions, gestures, and drag preview cleanup.
  • Svelte/type checks, formatting, ESLint, and git diff checks pass.
  • Production build and package validation pass.
  • Browser checks confirmed populated overlay dragging, preview cleanup, and preset switching without console errors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant